import request from '../../api/base'

export function getShiftPage(date) {
  let data = {pageSize: 50, pageNum: 1, date};
  return  request({
    method: 'get',
    url: 'api/member/api-member/memberLeave/getShiftPage',
    data: data,
    requestType: 'form'
  }).then(res => {
    if (res.flag){
      return res.data
    }
    return [];
  })
}

export function getShiftFrequency(data) {
  return  request({
    method: 'get',
    url: 'api/member/api-member/leave/getShiftFrequency',
    data: data,
    requestType: 'form'
  }).then(res => {
    if (res.flag){
      return res.data
    }
    return [];
  })
}


